<?php
error_reporting(0);
define('SYSTEM_ROOT', dirname(__FILE__).'/');
define('ROOT', dirname(SYSTEM_ROOT).'/');
define('SYS_KEY', 'QQ13242463');
define('PAGE', 20);
date_default_timezone_set('Asia/Shanghai');
$date = date("Y-m-d H:i:s");

header("X-Powered-By:blog.iiitool.com");

session_start();

if(is_file(SYSTEM_ROOT.'360safe/360webscan.php')){//360网站卫士
    require_once(SYSTEM_ROOT.'360safe/360webscan.php');
}

$islogin=0;
$css = '';

include_once(SYSTEM_ROOT."security.php");

require SYSTEM_ROOT.'config.php';

if(!is_file("./install/install.lock") && is_file("./install/index.php")){
    @header("location:install/index.php");
}

$DB = new PDO("mysql:host={$dbconfig['host']};dbname={$dbconfig['dbname']};port={$dbconfig['port']}",$dbconfig['user'],$dbconfig['pwd']);

if ($DB->query("select * from smalls_config")==false) {
    header('Content-type:text/html;charset=utf-8');
    echo '你还没安装！<a href="/install/">点此安装</a>';
    exit(0);
}

$DB->exec("set names utf8");
$rs=$DB->query("select * from smalls_config");
while($row=$rs->fetch()){
    $conf[$row['skey']]=$row['value'];
}

$password_hash='!@#%!s!0';
include_once(SYSTEM_ROOT."function.php");
include_once(SYSTEM_ROOT."member.php");
require SYSTEM_ROOT.'expand.php';


?>